<?php
class Inflector {
	
	public static function getTableName($word) {
		return strtolower(self::getPlural($word));
	}
	
	public static function getPlural($word) {
		$word = preg_replace('/^(.*)y$/', '$1ie', $word);
		return $word.'s';
	}
}
?>